package com.hbnu.system.controller;

import com.hbnu.system.core.base.Rest;
import com.hbnu.system.model.entity.NationalEconomy;
import com.hbnu.system.service.INationalEconomyService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jxl
 * @since 2025-07-12
 */
@Api(tags = "服务的国民经济行业")
@RestController
@RequestMapping("/national-economy")
public class NationalEconomyController {

    @Autowired
    private INationalEconomyService nationalEconomyService;

    @GetMapping("/getAll")
    public Rest<List<NationalEconomy>> getAll() {
        return Rest.success(nationalEconomyService.list());
    }

}
